import axios from '@/utils/request'

export const getBanner = () => axios.get('/index/index')

export const getHot = () => axios.get('/index/hot')

/**
 *
 * @param {*} page 页码
 * @returns
 */
export const getNew = (page) =>
  axios({
    url: '/index/new',
    params: {
      page,
      limit: 10
    }
  })
